package com.ergou.easylive.admin.convert;

import com.ergou.easylive.admin.entity.bo.SysUserRegisterBO;
import com.ergou.easylive.admin.entity.dto.SysUserRegisterDTO;
import com.ergou.easylive.admin.entity.po.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SysUserRegisterDTOConverter {
    SysUserRegisterDTOConverter INSTANCE = Mappers.getMapper(SysUserRegisterDTOConverter.class);

    // dto转换bo
    SysUserRegisterBO convertDTOToBO(SysUserRegisterDTO sysUserRegisterDTO);

    // bo转换entity
    SysUser convertBOToEntity(SysUserRegisterBO sysUserRegisterBO);
}
